<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
    <body style="background-color: white;">
	  <h:outputLabel value="Ödev bilgilerini giriniz."/>
		<h:panelGrid style="background-color: white;" columns="2">
		<h:outputLabel value="Dersi Seçiniz"/>
		<p:selectOneMenu value="#{HomeworkBean.courseId}">
		    <f:selectItems value="#{HomeworkBean.teacherCourse()}" var="course" itemLabel="#{course.NAME}" itemValue="#{course.ID}"/>
		</p:selectOneMenu>
		<h:outputLabel value="Ödev Dosyalarını ekleyiniz."/>
		<p:fileUpload value="#{HomeworkBean.file}" mode="simple"/>
		<h:outputLabel value="Dosya açıklaması:"/>
		<h:inputText value="#{HomeworkBean.fileInfo}"/>
		<h:outputLabel value="Ödev detayı: "/>
		<p:inputText value="#{HomeworkBean.hwİnfo}"/>
		<h:outputLabel value="Teslim tarihi: "/>
		<p:calendar value="#{HomeworkBean.date}"/>
		<p:commandButton value="Ekle" ajax="false" actionListener="#{HomeworkBean.addHomework()}"/>
	  </h:panelGrid>
    </body>
</html>
